from PIL import Image, ImageDraw
import os
from src.utils.style_manager import StyleManager

# 确保目录存在
os.makedirs('sample_images', exist_ok=True)

# 创建模拟图片
def create_colored_image(filename, color, text):
    img = Image.new('RGB', (100, 100), color)
    draw = ImageDraw.Draw(img)
    draw.text((35, 45), text, fill='white')
    img.save(f'sample_images/{filename}')

# 创建七个不同颜色的图片
create_colored_image('gold.png', '#FFD700', '金')
create_colored_image('wood.png', '#8B4513', '木')
create_colored_image('power.png', '#FF0000', '力量')
create_colored_image('belt.png', '#8B4513', '腰带')
create_colored_image('glove.png', '#DAA520', '拳套')
create_colored_image('ice.png', '#ADD8E6', '爆伤')
create_colored_image('mana.png', '#1E90FF', '回蓝')

if __name__ == "__main__":
    StyleManager.debug_print('示例图片创建完成！') 